<?php
$current_page = "login.php";
$page_type = "";
require_once 'header.php';

if (isset($_GET["login_error"]))
  $login_error = $_GET["login_error"];
else
  $login_error = "";

if (empty($_SESSION['user_id'])) {
  echo ("<h2>Login Panel</h2>
         <p><b>Please enter your username and password:</b></p>
         <form name=\"login\" method=\"POST\" action=\"login_response.php\"> 
          Username: <INPUT type=\"text\" name=\"client_id\" maxlength=\"12\"><br>
          Password: <INPUT type=\"password\" name=\"password\" maxlength=\"12\" ><br>
          <input type=\"submit\" name=\"submit\" value=\"Login\"> 
         </form>");
}  
echo "<font color=\"#CC0000\"><p><b>$login_error</b></p></font>";
?>
</body>
</html>